interface IConfig {
    port: number;
    debugLogging: boolean;
    jwtSecret: string;
    jwtIssuer: string;
    databasePort: number;
    databaseHost: string;
    databaseUserName: string;
    databasePassword: string;
    databaseDB: string;
}

const config: IConfig = {
    port: +process.env.PORT || 9527,
    debugLogging: process.env.NODE_ENV == 'development',
    jwtSecret: process.env.JWT_SECRET || 'process.env.JWT_SECRET',
    jwtIssuer: process.env.JWT_ISSUER,
    databasePort: +process.env.DATABASE_PORT,
    databaseHost: process.env.DATABASE_HOST,
    databaseUserName: process.env.DATABASE_USERNAME,
    databasePassword: process.env.DATABASE_PASSWORD,
    databaseDB: process.env.DATABASE_DB,
};

export { config };